home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypertxt / msdos / hyprvx11 / compress < prev    next >
Encoding:
Text File  |  1990-11-03  |  2.0 KB  |  61 lines

  1. COMPRESS
  2.  
  3. Makes an indexed sequential mail file smaller.
  4.  
  5. When you compress a file, the following four steps occur:
  6.  
  7.      1  A temporary file named MAIL_nnnn_COMPRESS.TMP is created.
  8.         (nnnn is a unique, four-digit number.)
  9.  
  10.      2  The contents (of the file to be compressed) are copied to
  11.         the temporary file and compressed.
  12.  
  13.      3  The original (uncompressed) file is renamed with a file type of OLD.
  14.  
  15.      4  The newly compressed file is renamed from MAIL_nnnn_COMPRESS.TMP
  16.  
  17.         back to its original name.
  18.  
  19. Format:        COMPRESS [file-spec]
  20.  
  21.  
  22. Parameters:    file-spec
  23.  
  24.                The name of the mail file to be compressed. If a
  25.                file-spec is not specified, MAIL compresses the
  26.                mail file that is currently. If there is no open
  27.                mail file, MAIL compresses the default mail file.
  28.  
  29. Qualifiers:    /OUTPUT=out-file-spec
  30.  
  31.                The name of the compressed file.
  32.  
  33. Examples:
  34.  
  35.  1.
  36.  
  37.    $ MAIL
  38.    MAIL> COMPRESS
  39.    %MAIL-S-CREATED,DISK$FUN:[FELLINI]MAIL_08C8_COMPRESS.TMP;1 created
  40.    %MAIL-S-COPIED, DISK$FUN:[FELLINI]MAIL.MAI;1 copied to              
  41. DISK$FUN:[FELLINI]MAIL_08C8_COMPRESS.TMP;1 (2 records)
  42.    %MAIL-S-RENAMED, DISK$FUN:[FELLINI]MAIL.MAI;1 renamed to
  43. DISK$FUN:[FELLINI]MAIL.OLD;2
  44.    %MAIL-S-RENAMED, DISK$FUN:[FELLINI]MAIL_08C8_COMPRESS.TMP;1 renamed
  45. to DISK$FUN:[FELLINI]MAIL.MAI;1
  46.  
  47.                This example shows how to compress the contents of
  48.                your default mail file (MAIL.MAI).
  49.  
  50.   2.
  51.     MAIL> COMPRESS trips.mai
  52.     %MAIL-S-CREATED,DISK$FUN:[FELLINI]MAIL_08C8_COMPRESS.TMP;1 created
  53.     %MAIL-S-COPIED, DISK$FUN:[FELLINI]TRIPS.MAI;1 copied to
  54. DISK$FUN:[FELLINI]MAIL_08C8_COMPRESS.TMP;1 (2 records)
  55.     %MAIL-S-RENAMED, DISK$FUN:[FELLINI]TRIPS.MAI;1 renamed to
  56. DISK$FUN:[FELLINI]TRIPS.OLD;2
  57.     %MAIL-S-RENAMED,DISK$FUN:[FELLINI]MAIL_08C8_COMPRESS.TMP;1 renamed
  58. to DISK$FUN:[FELLINI]TRIPS.MAI;1
  59.  
  60.                This example shows how to compress the contents of
  61.                a file named TRIPS.MAI.